const express = require('express');
const app = express();
const body = require('body-parser')
app.use(express.static('html'));
app.use(body.urlencoded({ extended: true }));
app.get('/liu', (req, res) => {
    console.log(req.query);
    res.join([{}],[{}][{}],[{}],[{}],[{}],[{}],[{}],[{}],[{}])
    
})
const user = {};
const user1 = {};
app.post('/testPost', (req, res) => {
    console.log(req.body);
    user = req.body;
})
app.post('/tomPost', (req, res) => {
    console.log(req.body);
    user1 = req.body;
})
app.listen(8080, err => {
    if (!err) {
        console.log('服务器启动');
    } else {
        console.log(err);
    }
});